<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script type="text/javascript">
			let website="https://www.baidu.com/s?ie=utf-8&f=8&rsv_bp=1&tn=15007414_5_dg&wd=%E6%94%80%E6%9E%9D%E8%8A%B1%E5%AD%A6%E9%99%A2&oq=%25E5%258D%258E%25E4%25B8%25BA&rsv_pq=c853126902f87e4c&rsv_t=d823G%2BXc7seBoH29HsHpZR%2FsC%2F%2BjLrv5lz8Utp4TAT6m6atbJ2Mr372xmHc3pe7DyJ8ZPg&rqlang=cn&rsv_enter=1&rsv_dl=tb&rsv_sug3=23&rsv_sug1=20&rsv_sug7=101&rsv_sug2=0&rsv_btype=t&inputT=24210&rsv_sug4=27603"
			let index=website.indexOf("?")
			let temp=website.substring(index+1)//问号后一位
			console.log(temp)
			let array=[]
			array=temp.split("&")
			console.log(array)
			let object={}
			for (var i = 0; i < array.length; i++) {
				let name=array[i].split("=")[0]
				let value=array[i].split("=")[1]
				object[name]=decodeURI(value)
			}
			console.log(object)
		</script>
	</head>
	<body>
	</body>
</html>
